package com.longteng.java.web;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by tianqing.wang
 * DATE : 2018/3/25
 * TIME : 上午12:20
 * PROJECT : web-lesson
 * PACKAGE : com.longteng.java.web
 *
 * @author <a href="mailto:celeskyking@163.com">tianqing.wang</a>
 */
@SpringBootApplication
@RestController
@EnableTransactionManagement(proxyTargetClass = true)
public class Application {





    @GetMapping(value = "/",produces = {"text/plain;charset=utf-8"})
    public String index(){
        return "hello,world";
    }


    public static void main(String[] args) {
        SpringApplication.run(Application.class,args);
    }




}
